How to refresh the ListView contents when a combo box choice is selected?

I tried to populate a listview(Containing checkboxes) whenever a choice from a combo box is selected
but i am able to empty the ListView but not able to populate again please help

code {DB pizzaBox = create "Edit Groups"
Group group

int i=0
for group in groupList do
{
i++
}
string groupNames[i]

int j=0
for group in groupList do
{
groupNames[j]=group.name
j++
}

string grop=groupNames[0]
Group gropp=find(grop)
User user

i=0
for user in gropp do
{
i++
}
string userNames[i]

j=0
for user in gropp do
{
userNames[j]=user.name
j++
}
DBE reqImport = choice(pizzaBox, "Select the Group: ",groupNames, 2)

DBE filesCheck = listView(pizzaBox, listViewOptionCheckboxes|listViewOptionMultiselect, 400,10, userNames)

DBE filesCheck1 = listView(pizzaBox, listViewOptionCheckboxes|listViewOptionMultiselect, 400,10, userNames)

void getUsers(DBE reqImport) {
int i = get reqImport
print groupNames[i]
string grp=groupNames[i]
Group group=find(grp)
i=0
for user in group do
{
i++
}
string userNames[i]

j=0
for user in group do
{
userNames[j]=user.name
print userNames[j]
j++
}

empty filesCheck

set(filesCheck,0,1,"ssss")

realize pizzaBox

}

set(reqImport , getUsers)

filesCheck ->"right"->"unattached"

filesCheck1 ->"left"->"flush"->filesCheck
filesCheck1 ->"top"->"aligned"->filesCheck
filesCheck1 ->"right"->"unattached"

void CheckBoxButtonHandler (DBE) {
int k=0
while(k<j)
{
bool selected=getCheck(filesCheck,k)
if(selected)
{
string s = getColumnValue(filesCheck , k, 0)
print s
}
k++
}
}

right(pizzaBox)

button(pizzaBox, "Ok", CheckBoxButtonHandler)

realize pizzaBox

insertColumn(filesCheck, 0, "UserList", 400, iconNone)

insertColumn(filesCheck1, 0, "UserList", 400, iconNone)
show pizzaBox}
SystemAdmin - Wed Nov 28 06:51:55 EST 2012

Re: How to refresh the ListView contents when a combo box choice is selected?
SystemAdmin - Wed Nov 28 07:54:48 EST 2012

I got it solved :-)
i changed the code to
insert(filesCheck , j, userNames[j])